package com.swak.mybatis.entity;

import java.time.LocalTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.swak.annotation.Column;
import com.swak.annotation.Table;
import com.swak.mybatis.typeHandler.BeginTimeTypeHandler;
import com.swak.persistence.Model;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true)
@ToString
@EqualsAndHashCode(callSuper = false)
@TableName("T_GOODS")
@Table(value = "T_GOODS")
public class Goods extends Model<Goods, Long> {

	private Long id;
	private String name;
	private String remarks;
	@Column(type = "BLOB")
	private Object message;
	@TableField(typeHandler = BeginTimeTypeHandler.class)
	private LocalTime beginTime;
}
